package com.yunxi.dao.otd;

import com.yunxi.core.dao.BaseMapperPlus;
import com.yunxi.model.otd.OtdWeekPlanDetail;
import com.yunxi.otd.pojo.OtdWeekPlanDetailVO;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 周度需求计划明细 Mapper 接口
 * </p>
 *
 * @author
 * @since 2019-05-09
 */
public interface OtdWeekPlanDetailMapper extends BaseMapperPlus<OtdWeekPlanDetail> {

    List<OtdWeekPlanDetailVO> selectDetailListByCode(String weekPlanCode);

    void deleteDetailListByCode(String weekPlanCode);

    void updateDetailSumNum(@Param("detailCode") String detailCode, @Param("realName") String realName);

    OtdWeekPlanDetail selectDetail(@Param("weekPlanCode") String weekPlanCode, @Param("productCode") String productCode,
        @Param("customPackCode") String customPackCode);

    void deleteDetailByWeekPlanCode(String weekPlanCode);

}
